import { request } from '~/api/request'

export const deletePost = (data: any): any => request('post', '/api/internal/v1/forum/deletePost', data)

export const deleteReply = (data: any): any => request('post', '/api/internal/v1/forum/deleteReply', data)

export const essentialPost = (data: any): any => request('post', '/api/internal/v1/forum/essentialPost', data)

export const getPostDetail = (data: any): any => request('get', `/api/internal/v1/forum/postDetail`, data)

export const queryPostList = (data: any): any => request('get', '/api/internal/v1/forum/postList', data)

export const handlePosting = (data: any): any => request('post', '/api/internal/v1/forum/posting', data)

export const handleReplayPost = (data: any): any => request('post', '/api/internal/v1/forum/replayPost', data)

export const queryReplyList = (data: any): any => request('get', '/api/internal/v1/forum/replyList', data)

export const handleTopPost = (data: any): any => request('post', '/api/internal/v1/forum/topPost', data)

export const queryTopic = () => request('get', '/api/internal/v1/forum/topic')
